package com.wolfking.converter.service;

import com.wolfking.converter.entity.SqlDefineParam;
import com.wolfking.jeesite.mybatis.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SqlDefineParamService extends BaseService<SqlDefineParam> {


    @Transactional
    public void updateSort(SqlDefineParam sqlDefineParam) {
        final Integer sort = sqlDefineParam.getSort();
        sqlDefineParam = getById(sqlDefineParam.getId());
        sqlDefineParam.setSort(sort);
        mapper.updateById(sqlDefineParam);
    }
}
